{{define "Title"}}用户权限{{end}}
{{define "Content"}}

<fieldset>
  <legend><b>用户权限</b></legend>
</fieldset>

<script type=text/javascript src="/js/tablestyle.js"></script>

{{if .usrs}}
<div class="content-box">
<table id="tbl_ls" border="1" cellspacing="0" cellpadding="0">
  <thead>
    <tr>
      <th>索引</th>
      <th>用户代码</th>
      <th>用户名称</th>
      <th>权限</th>
    </tr>
  </thead>
  
  <tbody id="group_one">
  {{range .usrs}}
  {{$curls := .}}
  {{$currright := index $curls 4}}
  <tr>
    <td id="detail_idx" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px" align="center" width="80">{{index $curls 0 | html}}</td>
    <td id="detail_uid" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px" align="center" width="120">{{index $curls 1 | html}}</td>
    <td id="detail_nam" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px" align="center" width="120">{{index $curls 2 | html}}</td>
    {{if eq $currright "scanflow"}}
    <td id="detail_rit" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 13px" width="300"><a href="/usrstation?q={{index $curls 1 | html}}">{{index $curls 3 | html}}</a></td>
    {{else}}
    <td id="detail_rit" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px" width="300">{{index $curls 3 | html}}</td>
    {{end}}
  </tr>
  {{end}}
  </tbody>
</table>
</div>
{{end}}

{{end}}